//===========================================================================
// FILE: DownlinkDemodulator.h
//
// By:   Chen Wei, wes-chen@163.com
//
// Date: 2013/8/19 17:22:50
//
//---------------------------------------------------------------------------
// Data Communication & Video Processing Lab. (Copyright(R)2008)
//===========================================================================

#ifndef _DownlinkDemodulator_H_
#define _DownlinkDemodulator_H_


#ifdef __cplusplus
extern "C" {
#endif

#include "DataTypeDef_F28.h"

typedef struct
{
	int16 nDataValid:8;
	int16 nDataBufIdx:8;
}DOWNLINK_DEMODULATOR_MSG, *P_DOWNLINK_DEMODULATOR_MSG;

void DownlinkDemodulatorInit(void);
uint16 DownlinkDemodulator_Thread(int hzType);

extern DOWNLINK_DEMODULATOR_MSG gsDownlinkDemodulatorMsg[2];

#define POST_DOWNLINK_DMDLR_MSG(pMsg, nBufIdx) \
		(pMsg)->nDataBufIdx = nBufIdx; \
		(pMsg)->nDataValid = 1

#ifdef __cplusplus
}
#endif /* extern "C" */


#endif // _DownlinkDemodulator_H_


//===========================================================================
// End of file.
//===========================================================================

